module.exports = function(grunt){
    //配置
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        concat: {
            domop: {
                src: ['src/reg.js', 'src/city.js'],
                dest: 'dest/domop.js'
            }
        },
        uglify: {
            options: {
                banner: '\n'
            },
            bulid: {
                src: [
                    'js/jquery.min.js',
                    'js/underscore-min.js',
                    'js/backbone-min.js',
                    'js/jquery.ui.widget.js',
                    'js/jquery.iframe-transport.js',
                    'js/jquery.fileupload.js'
                ],
                dest: 'dest/domop.min.js'
            }
        }
    });

    //载入concat和uglify插件，分别对于合并和压缩
    grunt.loadNpmTasks('grunt-contrib-concat');
    grunt.loadNpmTasks('grunt-contrib-uglify');

    //注册任务
    grunt.registerTask('default', ['concat', 'uglify']);

};/**
 * Created by andycall on 14-10-11.
 */
